const dyjRoutes = [
  {
    path: '/dyj',
    name: 'Dyj',
    component: 'Layout',
    meta: { title: '大赢加CRM' },
    redirect: { name: 'DyjUser' },
    children: [
      {
        path: 'userList',
        name: 'DyjUser',
        component: () => import('@/views/crm-dyj/user-list/index.vue'),
        meta: { title: '用户管理', authCode: 1000000, hide: false, icon: 'icon-user-manage' }
      },
      {
        path: 'orderList',
        name: 'DyjOrder',
        component: () => import('@/views/crm-dyj/order-list/index.vue'),
        meta: { title: '订单管理', authCode: 1000000, hide: false, icon: 'icon-order-manage' }
      },
      {
        path: 'team',
        name: 'DyjTeam',
        meta: { title: '团队列表', authCode: 1000000, icon: 'icon-team-list' },
        component: () => import('@/views/crm-dyj/team-list/index.vue')
      },
      {
        path: 'douyinList',
        name: 'DyjTeamDouyinList',
        component: () => import('@/views/crm-dyj/douyin-list/index.vue'),
        meta: { title: '抖音号列表', authCode: 1000000, hide: true }
      },
      {
        path: '/dyjPut',
        name: 'DyjPut',
        component: () => import('@/views/crm-dyj/dyj-put/index.vue'),
        meta: { title: '投放管理', authCode: 1000000, hide: false, externalLink: true, icon: 'icon-ad-manage', url: 'http://admin-dyj.kaogujia.com/storePopularize/launchOrderStore' }
      },
      {
        path: 'noticeList',
        name: 'DyjNoticeList',
        component: () => import('@/views/crm-dyj/notice-list/index.vue'),
        meta: { title: '公告管理', authCode: 1000000, icon: 'icon-order-manage' }
      },
      {
        path: 'noticeAdd',
        name: 'DyjNoticeAdd',
        component: () => import('@/views/crm-dyj/notice-add/index.vue'),
        meta: { title: '新增公告', hide: true, authCode: 1000000 }
      },
      {
        path: 'courseList',
        name: 'DyjCourseList',
        component: () => import('@/views/crm-dyj/course/course-list/index.vue'),
        meta: { title: '课程管理', authCode: 1000000, icon: 'icon-order-manage' }
      },
      {
        path: 'courseAdd',
        name: 'DyjCourseAdd',
        component: () => import('@/views/crm-dyj/course/course-add/index.vue'),
        meta: { title: '新增课程', hide: true, authCode: 1000000 }
      }
    ]
  }
];

export default dyjRoutes;
